package cake.controller
{
	import cake.model.Model;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	import flash.events.Event;
	
	public class Controller extends EventDispatcher implements IEventDispatcher
	{
		private var _model:Model    = null;
		private var _name:String    = 'cake.controller.Controller';
		public  var CLASS_REF:Class = cake.controller.Controller;
		
		public function Controller(){
			trace('Controller made');
		}
		public function set($var,$value):Boolean{
			return true;
		}
		public function get name():String{
			return _name;
		}
		public function set name($name:String):void{
			_name = $name;
		}
		public function test(event:Event):void{
			trace('test: '+event);
		}
	}
}